import request from '@/utils/request'

export function allGoods(query) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/list',
    method: 'post',
    data: query
  })
}

export function add(obj) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/add',
    method: 'post',
    data: obj
  })
}

export function update(obj) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/update',
    method: 'post',
    data: obj
  })
}

export function deleteObj(obj) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/delete',
    method: 'post',
    data: obj
  })
}

export function importObj(obj) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/import',
    method: 'post',
    data: obj
  })
}

export function createQr(obj) {
  return request({
    url: '/api/adminthymeleaf/qrGoodsInfos/createQr',
    method: 'post',
    data: obj
  })
}
